import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yi_shop/utils/colors.dart';
import 'package:yi_shop/utils/styles.dart';
import 'package:yi_shop/utils/tools.dart';

class MineSignRuleController extends GetxController {}

class MineSignRulePage extends GetView<MineSignRuleController> {
  const MineSignRulePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        leading: ToolsUtils.builderLeading(),
        title: Text(
          '签到规则',
          style: StylesUtils.customTextStyle(
              fontSize: StylesUtils.fontSize18, fontWeight: FontWeight.w700),
        ),
      ),
      body: SingleChildScrollView(
        padding: const EdgeInsets.symmetric(horizontal: 15),
        child: Column(
          children: [
            Container(
              padding: const EdgeInsets.symmetric(vertical: 20),
              alignment: Alignment.centerLeft,
              child: Text(
                '日常签到规则',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color6666,
                    fontWeight: FontWeight.w700,
                    fontSize: StylesUtils.fontSize18),
              ),
            ),
            Table(
              defaultVerticalAlignment: TableCellVerticalAlignment.middle,
              border: TableBorder.all(
                color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorE4e4),
              ),
              children: [
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '累计签到',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '成长值',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '贡献值',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5天',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '14天',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '20天',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '10',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '当月满勤',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '20',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '10',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '连续2个月满勤',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '30',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '30',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '连续6个月满勤',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '40',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '40',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '连续12个月满勤',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '70',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '70',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
              ],
            ),
            Container(
              padding: const EdgeInsets.symmetric(vertical: 30),
              alignment: Alignment.centerLeft,
              child: Text(
                '补签规则',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color6666,
                    fontWeight: FontWeight.w700,
                    fontSize: StylesUtils.fontSize18),
              ),
            ),
            Table(
              defaultVerticalAlignment: TableCellVerticalAlignment.middle,
              border: TableBorder.all(
                color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorE4e4),
              ),
              children: [
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '会员等级',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '每日补签',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '每月补签',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    decoration: BoxDecoration(
                        color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorF2f2)),
                    alignment: Alignment.center,
                    child: Text(
                      '消耗贡献值',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  ))
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '普通/黄金',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '2次',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5次',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '10',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                ]),
                TableRow(children: [
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '铂金/钻石',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '2次',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '10次',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                  TableCell(
                      child: Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      '5',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color6666, fontSize: StylesUtils.fontSize13),
                    ),
                  )),
                ]),
              ],
            ),
          ],
        ),
      ),
    );
  }
}
